This is not a standard CSS property, so rename it to
-gtk-key-bindings. We still support the old name, with a
deprecation warning.
state = gtk_widget_get_state_flags (GTK_WIDGET (object));
gtk_style_context_get (context, state,
- "gtk-key-bindings", &array,
+ "-gtk-key-bindings", &array,
NULL);
if (array)
{
G_GNUC_END_IGNORE_DEPRECATIONS
/* Private property holding the binding sets */
- gtk_css_style_property_register ("gtk-key-bindings",
+ gtk_css_style_property_register ("-gtk-key-bindings",
GTK_CSS_PROPERTY_GTK_KEY_BINDINGS,
G_TYPE_PTR_ARRAY,
0,
bindings_value_query,
bindings_value_assign,
_gtk_css_array_value_new (_gtk_css_string_value_new (NULL)));
+ _gtk_style_property_add_alias ("-gtk-key-bindings", "gtk-key-bindings");
}